import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import index from '@/components/index/index'
import success from '@/components/index/success'
import chaxun from '@/components/index/chaxun'

Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        name: 'Hello',
        component: Hello
    }, {
        path: '/index/:userid',
        name: 'index',
        component: index
    }, {
        path: '/success/:userid',
        name: 'success',
        component: success
    }, {
        path: '/chaxun/:userid',
        name: 'chaxun',
        component: chaxun
    }]
})